package com.luhongzhe;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * @author 	luhongzhe
 * @email  	azhe0660@gmail.com
 * @date   	2011-6-26
 */

public class Entry extends Activity
{
	 @Override
	 public void onCreate(Bundle savedInstanceState)
	 {
		 super.onCreate(savedInstanceState);
		 
		 setContentView(R.layout.entry);
		 
		 Button btnToPlayingPage = (Button)findViewById(R.id.entryToPlayingPage);
		 btnToPlayingPage.setOnClickListener(btnToPlayingPageListener);
		 
		 Button btnToTopPage = (Button)findViewById(R.id.entryToTopPage);
		 btnToTopPage.setOnClickListener(btnToTopListener);
		 
	 }
	 
	 OnClickListener btnToPlayingPageListener = new OnClickListener() {
		
		@Override
		public void onClick(View v) {
			Intent intent = new Intent(Entry.this, PlayingPage.class);
			startActivity(intent);
		}
	};
	
	OnClickListener btnToTopListener = new OnClickListener() {
		
		@Override
		public void onClick(View v)
		{
			Intent intent = new Intent(Entry.this, TopPage.class);
			startActivity(intent);
		}
	};
	 
}
